#ifndef FILE_READER_H
#define FILE_READER_H


#include "Info.h"
#include <stdio.h>


typedef enum {RD_SRC,RD_ZIP} RD_TYPE;


class FileReader : public Info
{
public:
	FileReader(char* szFileName,RD_TYPE eRdType);
	virtual ~FileReader();
public:
	void GetBit(int* pBit);
	void GetSymbol(int* pSymbol);
private:
	void InitSrcFile();
	void InitZipFile();
private:
	FILE* m_pFile;
	int   m_iBitSeq;
	int   m_iBitSeqLen;
};


#endif
